//
//  POI.h
//  WeddingStoreFinder
//
//  Created by Macdev on 11/19/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import <MapKit/MapKit.h>
@class Dress;

@interface POI : NSManagedObject <MKAnnotation>

@property (nonatomic, retain) NSNumber * customPoiId;
@property (nonatomic, retain) NSNumber * longitude;
@property (nonatomic, retain) NSNumber * latitude;
@property (nonatomic, retain) NSString * address;
@property (nonatomic, retain) NSString * city;
@property (nonatomic, retain) NSString * phone;
@property (nonatomic, retain) NSString * poiName;
@property (nonatomic, retain) NSString * zipCode;
@property (nonatomic, retain) NSSet *dresses;
@property (nonatomic, retain) NSNumber * poiStatus;

@property CGFloat distanceFromLocation;

+ (POI*) getPOIByCustomId:(int)_customPOIId;
+ (void) processPOIList:(id)JSONResult;
+ (NSArray*) getPOIListOrderBy:(NSString*)orderBY;
+ (NSArray*) getPOIsByStatus:(int)_status;

@end

@interface POI (CoreDataGeneratedAccessors)

- (void)addDressesObject:(Dress *)value;
- (void)removeDressesObject:(Dress *)value;
- (void)addDresses:(NSSet *)values;
- (void)removeDresses:(NSSet *)values;
@end
